2a5b420ec8808f192caef526cf26c5a7dbdcbaa3,src/nationGen/rostergeneration/CommanderGenerator.java,CommanderGenerator,getUnitWith,#List#List#List#,629

Before Change


		{
				if(allFeatures.contains(c.command))
				{
					features.remove(c.command);
				}
		}
		

After Change


	}
	
	
	private Unit getUnitWith(List<String> features, List<String> allFeatures, List<Unit> possibleComs)
	{
		Unit unit = null;
		int highest = 0;
		
		
		for(Unit u : possibleComs)
		{
			int count = 0;
			for(Command c : u.getCommands())
			{
				for(String feature : features)
				{
					if(feature.equals(c.command))
						count++;
				}
			}